package com.xhtt.modules.inspection.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xhtt.modules.inspection.dao.InsPointSubitemMapper;
import com.xhtt.modules.inspection.entity.InsPointSubitem;
import com.xhtt.modules.inspection.service.IInsPointSubitemService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 巡检点的设备的巡检的内容 服务实现类
 * </p>
 *
 * @author xj
 * @since 2019-01-18
 */
@Service
public class InsPointSubitemServiceImpl extends ServiceImpl<InsPointSubitemMapper, InsPointSubitem> implements IInsPointSubitemService {

    @Override
    public List<InsPointSubitem> getInsPointSubByPointId(Integer pointId) {
        return baseMapper.selectList(new LambdaQueryWrapper<InsPointSubitem>().eq(InsPointSubitem::getPointId, pointId));
    }

    @Override
    public List<InsPointSubitem> getAllByPointId(Integer pointId) {
        return baseMapper.queryByPointId(pointId);
    }


    @Override
    public InsPointSubitem getAllById(Integer pointSubId) {
        return baseMapper.queryById(pointSubId);
    }


}
